<%= javascript_include_tag "application" %>

<%# Append your own using content_for :javascripts %>
<%= yield :javascripts %>

<%# Google Analytics %>
<%# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/html5_rails.yml %>
<% if !google_account_id.blank? %>
  <script>
    //<![CDATA[
      var _gaq=[['_setAccount','<%= google_account_id %>'],['_trackPageview']];
      (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
      g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
      s.parentNode.insertBefore(g,s)}(document,'script'));
    //]]>
  </script>
<% end %>
